# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=blindelephant
pkgver=8
pkgrel=4
groups=('blackarch' 'blackarch-fingerprint' 'blackarch-webapp')
pkgdesc='A web application fingerprinter. Attempts to discover the version of a (known) web application by comparing static files at known locations'
url='http://blindelephant.sourceforge.net/'
arch=('any')
makedepends=('svn')
depends=('python2')
license=('LGPL')
source=('svn+https://blindelephant.svn.sourceforge.net/svnroot/blindelephant/trunk')
sha512sums=('SKIP')

build() {
  cd trunk/src

  python2 setup.py build
}

package() {
  cd trunk/src

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build

  mv "$pkgdir/usr/bin/BlindElephant.py" "$pkgdir/usr/bin/$pkgname"
}

